//
//  CalculateLabelHeight.h
//  TestSuZhou
//
//  Created by 刘应平 on 16/7/15.
//  Copyright © 2016年 刘应平. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CalculateLabelHeight : UILabel

+ (CGSize)CalculateLabelHeightWithString:(NSString *)string font:(CGFloat)font width:(CGFloat)width;
+ (CGSize)CalculateLabelWidthWithString:(NSString *)string font:(CGFloat)font height:(CGFloat)height;
+ (CGFloat)calculateLabeHeightWithString:(NSString *)string font:(CGFloat)font width:(CGFloat)width space:(CGFloat)space;
/*
 计算UILabel的高度(带有行间距的情况)
 (NSString*)str  内容
 withFont:(float)font 字体大小
 WithSpace:(float)space 行间距
 (CGFloat)width  UILable的宽度
 */
//计算UILabel的高度(带有行间距的情况)
-(CGFloat)getSpaceLabelHeight:(NSString*)str withFont:(float)font withWidth:(CGFloat)width WithSpace:(float)space;
@end
